package com.zpark.it.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Title: Collect 收藏实体类
 * @Author Charles
 * @Package com.zpark.it.pojo
 * @Date 2023/7/25 16:51
 */
@Data
@TableName("collect")
public class Collect implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("user_id") //指定数据库表名
    @JsonProperty("user_id")
    private Integer userId;


    @TableField("product_id")
    @JsonProperty("product_id")
    private Integer productId;


    @TableField("collect_time")
    @JsonProperty("collect_time")
    private Long collectTime;
}
